Create payment method
Clients > Moyens de paiement
Create payment method
Import an existing customer payment method from a connected payment provider.
POST
Create payment method
Autorisations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de chemin
Corps
application/json
Provider name.
Options disponibles:
airwallex, gocardless, mollie, stripe ID of the payment method on the provider's side.
Provider ID. Required if multiple instances of the same provider are connected in Hyperline.
Réponse
201 - application/json
- Card
- Card (errored)
- Direct Debit
- Direct Debit (errored)
- Stripe Link
- Stripe Link (errored)
Payment method ID.
Exemple:
"pm_1xMpj5bwRqN7LM"
Payment method status.
active: The payment method is ready to be used.pending: The payment method is pending activation or being validated.
Options disponibles:
active, pending, expired, errored Exemple:
"active"
Payment method type.
card: Credit or debit cardapple_pay: Apple Paygoogle_pay: Google Paydirect_debit_sepa: SEPA Direct Debitdirect_debit_ach: ACH Direct Debitdirect_debit_bacs: Bacs Direct Debitstripe_link: Stripe Link
Options disponibles:
card, apple_pay, google_pay Exemple:
"card"
Last four digits of the card.
Exemple:
2718
Expiration date of the card using YYYY-MM format.
Exemple:
"2027-11"
Brand of the card.
Exemples:
"visa"
"mastercard"
"amex"
Reference to the entity in an external provider.
Exemple:
{
"entity_id": "123456789",
"provider_name": "stripe",
"provider_account_id": "acc_1234567890"
}
